package lschgcdev.apis;
import java.util.*;

public class SettingMask
{
	LinkedList<String> maskIDs = new LinkedList<String>();
	boolean bypass = false;

	SettingMask(boolean bypass){
		this.bypass = bypass;
	}

	SettingMask(String...IDs){
		for(String ID : IDs){
			maskIDs.add(ID);
		}
	}

	public boolean verify(String ID){
		if(bypass)
			return true;

		for(String maskID : maskIDs){
			if(maskID.equals(ID))
				return true;
		}

		return false;
	}
}
